﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="EvecLogout.aspx.cs" Inherits="Web.EvecLogout" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>出差申请 销单</title>
    <base target="_self" />
    <meta content="ie=7" http-equiv="x-ua-compatible">
    <link href="Styles/Style01.css" rel="stylesheet" type="text/css" />
    <script src="Scripts/jquery-1.7.min.js" type="text/javascript"></script>
    <link href="Styles/validate.css" rel="stylesheet" type="text/css" />
    <script src="Scripts/easy_validator.pack.js" type="text/javascript"></script>
    <script src="Content/scripts/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
    <script>
        $(function () {
            $("[reg]").parents("td").prev().append("<font color='#ff0000'>*</font>");
            $("#btnSave").click(function () {
                var isSubmit = true;
                $("form").find("[reg],[url]:not([reg])").each(function () {
                    if (!validate($(this), this.tagName)) {
                        isSubmit = false;
                    }
                });
                if (!isSubmit) {
                    alert("请确认'红字或红框'处的输入正确!");
                    return false;
                }
                return true;
            });
        });
    </script>
</head>
<body>
<form id="Form1" runat=server>
<table class="s1 view">
<tr><td>表单编号</td><td><%=reqEvectionMain.FormNo%></td><td>申请时间</td><td><%=reqEvectionMain.ReqDate.ToString("yyyy-MM-dd HH:mm:ss")%></td></tr>
<tr><td>申请人</td><td><%=empName%></td><td>预计费用</td><td><%=reqEvectionMain.PreCost%></td></tr>
<tr><td>出差人</td><td colspan=3><%=reqEvectionMain.TriperIds%></td></tr>
<tr><td>申请备注</td><td colspan=3><%=reqEvectionMain.Cause%></td></tr>
<tr><td>实际费用</td><td colspan=3><input id="RealCost" runat="server" title="请输入非负整数" reg="^\d+(\.\d{1,2})?$"></td></tr>
<tr><td>实际开始时间</td><td><input id="RealStartTime" runat="server" class="Wdate" onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'});" title="格式:yyyy-MM-dd HH:mm:ss" reg="."></td>
<td>实际结束时间</td><td><input id="RealEndTime" runat="server" class="Wdate" onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'});" title="格式:yyyy-MM-dd HH:mm:ss" reg="."></td></tr>
<tr><td>销单备注</td><td colspan=3><input id="Remarks" runat="server"></td></tr>
</table>
<asp:Repeater ID="rptList" EnableViewState="False" Runat="server">
	<HeaderTemplate>
		<table class="s1 list">
			<caption>旅程明细</caption>
			<thead>
				<TR>
					<th width="15%">预计开始日期</th>
					<th width="15%">预计结束日期</th>
					<th width="10%">交通工具</th>
					<th width="10%">出发地</th>
					<th width="10%">到达地</th>
					<th width="20%">备注</th>
				</TR>
			</thead><tbody>
	</HeaderTemplate>
	<ItemTemplate>
		<tr class="<%# Container.ItemIndex%2==0?"bg":""%>">
			<td><%# DataBinder.Eval(Container.DataItem, "PreStartTime","{0:d}")%></td>
			<td><%# DataBinder.Eval(Container.DataItem, "PreEndTime", "{0:d}")%></td>
			<td><%# DataBinder.Eval(Container.DataItem, "TrafficTool")%></td>
			<td><%# DataBinder.Eval(Container.DataItem, "LeavePoint")%></td>
			<td><%# DataBinder.Eval(Container.DataItem, "ArrivePoint")%></td>
			<td><%# DataBinder.Eval(Container.DataItem, "Cause")%></td>
		</tr>
	</ItemTemplate>
	<FooterTemplate>
		</tbody> </table>
	</FooterTemplate>
</asp:Repeater>
<asp:Repeater ID="rptVoyage" EnableViewState="False" Runat="server">
	<HeaderTemplate>
		<table class="s1 list">
			<caption>航程明细</caption>
			<thead>
				<TR>
					<th width="15%">出发日期时间段</th>
					<th width="15%">到达日期时间段</th>
					<th width="15%">出发地</th>
					<th width="15%">到达地</th>
					<th width="20%">取票时间段</th>
				</TR>
			</thead><tbody>
	</HeaderTemplate>
	<ItemTemplate>
		<tr class="<%# Container.ItemIndex%2==0?"bg":""%>">
			<td><%# DataBinder.Eval(Container.DataItem, "PreLeaveTimeSpan")%></td>
			<td><%# DataBinder.Eval(Container.DataItem, "PreArriveTimeSpan")%></td>
			<td><%# DataBinder.Eval(Container.DataItem, "LeavePoint")%></td>
			<td><%# DataBinder.Eval(Container.DataItem, "ArrivePoint")%></td>
			<td><%# DataBinder.Eval(Container.DataItem, "PrePickTimeSpan")%></td>
		</tr>
	</ItemTemplate>
	<FooterTemplate>
		</tbody> </table>
	</FooterTemplate>
</asp:Repeater>
<asp:Repeater ID="rptFlighter" EnableViewState="False" Runat="server">
	<HeaderTemplate>
		<table class="s1 list">
			<caption>乘机人明细</caption>
			<thead>
				<TR>
					<th width="20%">乘机人</th>
					<th width="20%">身份证号</th>
					<th width="20%">手机号</th>
				</TR>
			</thead><tbody>
	</HeaderTemplate>
	<ItemTemplate>
		<tr class="<%# Container.ItemIndex%2==0?"bg":""%>">
			<td><%# DataBinder.Eval(Container.DataItem, "FlighterName")%></td>
			<td><%# DataBinder.Eval(Container.DataItem, "FlighterId")%></td>
			<td><%# DataBinder.Eval(Container.DataItem, "FlighterCell")%></td>
		</tr>
	</ItemTemplate>
	<FooterTemplate>
		</tbody> </table>
	</FooterTemplate>
</asp:Repeater>
<div style="text-align:right;margin-right:24px;margin-top:6px;">
    <asp:button runat="server" text="保存" class="btn" id="btnSave" onclick="btnSave_Click"/>
    <input type=button value="关闭" class="btn" onclick="window.close();" />
</div>
</form>
</body>
</html>